package ${pkg}.mapper;

import java.time.*;
import java.util.*;
import com.boe.common.util.*;
import org.apache.ibatis.annotations.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.conditions.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.*;
import ${pkg}.entity.*;
import ${pkg}.model.vo.${sc(entityName)}.*;

/**
* ${entityCn}
* Created by ${user} at ${now}
*/
@Mapper
public interface ${bc(entityName)}Mapper extends BaseMapper<${bc(entityName)}> {

    String basicView = "SELECT a.* FROM ${tableName} AS a ";    //应该写 left_join table2 on ()
    String querySql = "SELECT * from ( " + basicView + " ) as v <#noparse>${ew.customSqlSegment}</#noparse>";

    @Select(querySql)
    List<${bc(entityName)}ResponseVO> list(Page page, @Param("ew") Wrapper queryWrapper);
}
